import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listEquipment(query) {
  return request({
    url: '/match/admin/getAllBangDing',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getEquipment(id,phone) {
  return request({
    url: '/match/admin/agree',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params: {equipmentId: id,phone:phone}
  })
}

// 新增【请填写功能名称】
export function addEquipment(data) {
  return request({
    url: '/system/equipment',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateEquipment(data) {
  return request({
    url: '/system/equipment',
    method: 'put',
    data: data
  })
}


// 拒绝【请填写功能名称】
export function delEquipment(id,phone) {
  return request({
    url: '/match/admin/noagree',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params: {equipmentId: id,phone:phone}
  })
}

// 导出【请填写功能名称】
export function exportEquipment(query) {
  return request({
    url: '/system/equipment/export',
    method: 'get',
    params: query
  })
}
